package com.qiang.work.test05;

@Student
public class TestStu {
    public static void main(String[] args) {

        //Student student = new Student();

        //通过反射获取学生注解里面的学生信息

        //获取本类字节码上面的注解

        Class clazz = TestStu.class;

        Student stu = (Student) clazz.getAnnotation(Student.class);

        String id = stu.id();
        System.out.println(id);


        //通过注解（对象）获取具体的值

        //为student赋值


    }
}
